home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
asmutil
/
ma22#2.zip
/
EXAMPLE1.68
< prev
next >
Wrap
Text File
|
1991-08-21
|
935b
|
49 lines
*
* Sample source file for the Motorola 6800
*
* (this program does not do anything, it is only an example)
*
title Sample source file
*
* Definitions
*
cr equ $0d ;carriage return
lf equ 10 ;line feed
RAM: equ $2000 ;memory start
ppi0 equ $8000 ;ppi 0
crppi0 equ ppi0+1 ;control register
srppi0 equ ppi0+2 ;status register
flag equ 123 ;flag bit
offset set 0
*
* Variables
*
org RAM ;variables
key rmb 16 ;key buffer
table rmb 2+3*$10 ;address table
loop1:
offset set 9
*
* Program
*
ldaa #'*'
clrb
psha
ldab messg1+offset
oraa #flag
ldx #10
jsr delay
bra loop1
*
* Delay routine
*
delay: dex
rts
*
* Dummy data
*
routines fdb $1234,$f800,0 ;routine addresses
messg1 fcc cr,lf,'String no 1.',0
messg2 fcb cr,lf,lf,'Press a key.',0
end